package com.zyong.design.pattern.state.case1;

public class Client {
    public static void main(String[] args) {
        Context context = new Context();

        State state = new ConcreteStateA();
        context.setState(state);
        context.getState().operation1();
        context.getState().operation2();

        state = new ConcreteStateB();
        context.setState(state);
        context.getState().operation1();
        context.getState().operation2();
    }
}
